package com.wechat.service;

import java.util.concurrent.CompletableFuture;

import com.swak.entity.Page;
import com.swak.entity.Parameters;
import com.wechat.dto.ChatRoomDTO;

public interface ChatRoomServiceAsync {
	CompletableFuture<ChatRoomDTO> get(String id);

	CompletableFuture<ChatRoomDTO> save(ChatRoomDTO chatRoom);

	CompletableFuture<Integer> delete(ChatRoomDTO chatRoom);

	CompletableFuture<Page<ChatRoomDTO>> page(ChatRoomDTO query, Parameters param);

	CompletableFuture<ChatRoomDTO> saveDisplayName(ChatRoomDTO chatRoom);
}
